package com.software.cool.service.impl;

import com.software.cool.mapper.RabbitmqMapper;
import com.software.cool.service.IRabbitmqService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class RabbitmqService implements IRabbitmqService {
    @Autowired
    private RabbitmqMapper rabbitmqMapper;

    public void sendWork(String routingKey,String message)throws Exception {
        rabbitmqMapper.sendWork(routingKey,message);
    }

}
